SendEmail
≥4.5
Interface Function
Send email.
Request Parameter
Parameter | Required | Type | Remarks |
---|---|---|---|
emailTempCode | true | string | Code of email template,template code guid string,can get this from Email template page |
mailToList | true | List<string> |
Collection of recipient email addresses |
mailCc | false | string | CC email address |
mappingData | false | Dictionary<string, string> |
Parameter substitution value of the mail template |
mailBCC | false | string | BCC email address |
attachmentFieldName | false | string | The corresponding control Field name of the attachment in the Form, supported field types: File Upload, File Upload(Advanced) |
Return Data Type
Dictionary<string, int>
Key is the item of mailToList. Value of 1 is for success, 0 is for failure.
Code Sample
List<string> mailToList = new List<string>
{
"demo1@digitalmaker.com",
"demo2@digitalmaker.com"
};
var mappingData = new Dictionary<string, string>()
{
{"Name","DemoText"}
};
Service.SendEmail("1d4b8978-6115-4243-830e-5d912d0b2f41",mailToList,"demo@digitalmaker.com",mappingData,"","DemoAttachmentFieldName");
return Return;